<?php
/**
 * Created by clz.
 * User: clz
 * Date: 2018/8/3
 * Time: 19:36
 */

use Illuminate\Database\Capsule\Manager as Capsule;

// Autoload 自动载入
require './vendor/autoload.php';

// 路由配置
require './route/route.php';

// Eloquent ORM

$capsule = new Capsule;

$capsule->addConnection(require './config/database.php');

$capsule->bootEloquent();